package demo.reflect;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/5-08-05-16:42
 * @Description：demo.reflect
 */
public class User {
    protected  int  id;//id号
    public  String  name ;  //用户名
    private  String  password;//密码

    boolean  checkName(String  name){
        return name.equals(this.name);
    }
    public  void  setName(String  name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public  void  doSomething(){
        System.out.println("User.doSomething1");
    }
    public  void  doSomething(String  name ,String  password){
        System.out.println("User.doSomething2");
    }
    public  void  doSomething(int  id ,String  name ,String  password){
        System.out.println("User.doSomething3");
    }
}
